
package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件管理对象 sys_file_info
 */
public class SysFileInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 文件ID */
    private Long fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String name;

    /** 原文件名称 */
    @Excel(name = "原文件名称")
    private String originalName;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String url;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long size;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String type;

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getSize() {
        return size;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("fileId", getFileId())
                .append("name", getName())
                .append("originalName", getOriginalName())
                .append("url", getUrl())
                .append("size", getSize())
                .append("type", getType())
                .append("createTime", getCreateTime())
                .toString();
    }
}
